import Layout from '@/page/index/'
export default [{
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
        path: 'index',
        name: '首页',
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: true
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/wel/index')
    }]
}, {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
        path: 'index',
        name: '个人信息',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/views/admin/user/info'),
    }]
}, {
    path: '/report',
    component: Layout,
    redirect: '/report',
    children: [{
        path: '/report',
        name: '数据报表',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/views/report/index'),
    }]
}, {
    path: '/alarm',
    component: Layout,
    redirect: '/alarm/index',
    children: [{
        path: '/alarm/index',
        name: '告警管理',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/views/alarm/index'),
        children: [{
            path: '/alarm/rfid',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/alarm/rfid-record/index'),
        }, {
            path: '/alarm/alarm',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/alarm/alarm-record/index'),
        }, {
            path: '/alarm/camera',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/alarm/camera-record/index'),
        }]
    }]
}, {
    path: '/business/main',
    component: Layout,
    redirect: '/business/main',
    children: [{
        path: '/business/main',
        name: '信息管理',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/views/business/main'),
        children: [{
            path: '/admin/org',
            name: '小区管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/admin/org/index'),
        }, {
            path: '/business/car',
            name: '电动车管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/business/car/index'),
        }, {
            path: '/business/car-owner',
            name: '车主管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/business/car-owner/index'),
        }, {
            path: '/business/rfid',
            name: 'RFID管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/business/rfid-equipment/index'),
        }, {
            path: '/business/alarm',
            name: '充电监测设备管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/business/alarm-equipment/index'),
        }, {
            path: '/business/camera',
            name: '摄像头管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/business/camera/index'),
        }]
    }]
}, {
    path: '/admin/index',
    component: Layout,
    redirect: '/admin/index',
    children: [{
        path: '/admin/index',
        name: '权限管理',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/views/admin/index'),
        children: [{
            path: '/admin/user',
            name: '用户管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/admin/user/index'),
        }, {
            path: '/admin/menu',
            name: '菜单管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/admin/menu/index'),
        }, {
            path: '/admin/role',
            name: '角色管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/admin/role/index'),
        }, {
            path: '/admin/dept',
            name: '部门管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/admin/dept/index'),
        }, {
            path: '/admin/config',
            name: '参数管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/admin/config/index'),
        }, {
            path: '/admin/dict',
            name: '字典管理',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/views/admin/dict/index'),
        }]
    }]
}]
